package com.mind.invoice.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mind.invoice.mapper.AjJsAdapterMapper;
import com.mind.invoice.domain.AjJsAdapter;
import com.mind.invoice.service.IAjJsAdapterService;

/**
 * 函数Service业务层处理
 * 
 * @author today
 * @date 2025-04-25
 */
@Service
public class AjJsAdapterServiceImpl implements IAjJsAdapterService 
{
    @Autowired
    private AjJsAdapterMapper ajJsAdapterMapper;

    /**
     * 查询函数
     * 
     * @param id 函数主键
     * @return 函数
     */
    @Override
    public AjJsAdapter selectAjJsAdapterById(Long id)
    {
        return ajJsAdapterMapper.selectAjJsAdapterById(id);
    }

    /**
     * 查询函数列表
     * 
     * @param ajJsAdapter 函数
     * @return 函数
     */
    @Override
    public List<AjJsAdapter> selectAjJsAdapterList(AjJsAdapter ajJsAdapter)
    {
        return ajJsAdapterMapper.selectAjJsAdapterList(ajJsAdapter);
    }

    /**
     * 新增函数
     * 
     * @param ajJsAdapter 函数
     * @return 结果
     */
    @Override
    public int insertAjJsAdapter(AjJsAdapter ajJsAdapter)
    {
        return ajJsAdapterMapper.insertAjJsAdapter(ajJsAdapter);
    }

    /**
     * 修改函数
     * 
     * @param ajJsAdapter 函数
     * @return 结果
     */
    @Override
    public int updateAjJsAdapter(AjJsAdapter ajJsAdapter)
    {
        return ajJsAdapterMapper.updateAjJsAdapter(ajJsAdapter);
    }

    /**
     * 批量删除函数
     * 
     * @param ids 需要删除的函数主键
     * @return 结果
     */
    @Override
    public int deleteAjJsAdapterByIds(Long[] ids)
    {
        return ajJsAdapterMapper.deleteAjJsAdapterByIds(ids);
    }

    /**
     * 删除函数信息
     * 
     * @param id 函数主键
     * @return 结果
     */
    @Override
    public int deleteAjJsAdapterById(Long id)
    {
        return ajJsAdapterMapper.deleteAjJsAdapterById(id);
    }
}
